package com.itheima.eurekaprovideranother.controller;
import entity.Student;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.http.ResponseEntity;

@RestController
//@RequestMapping("/hello")
public class HelloController {


    // 新增接口 - Student
    @RequestMapping("/hello2")
    public ResponseEntity<Student> getStudent() {
        Student student = new Student("20223206105", "丁鑫", 22);
        return ResponseEntity.ok(student);
    }



}